﻿using System.Web;

namespace Anmlz.Web.Infrastructure
{
    using System.Web.Http.WebHost;
    using System.Web.Routing;
    using System.Web.SessionState;

    public class SessionControllerHandler
  : HttpControllerHandler, IRequiresSessionState
    {
        public SessionControllerHandler(RouteData routeData)
            : base(routeData)
        { }
    }

    public class SessionRouteHandler : IRouteHandler
    {
        IHttpHandler IRouteHandler.GetHttpHandler(RequestContext requestContext)
        {
            return new SessionControllerHandler(requestContext.RouteData);
        }
    }
}